package com.hopu.oa.service.impl.mail;

import com.hopu.oa.dao.mail.AoaMailnumberDao;
import com.hopu.oa.entity.mail.AoaMailnumber;
import com.hopu.oa.service.mail.AoaMailnumberService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class AoaMailnumberImpl implements AoaMailnumberService {

    @Autowired
    private AoaMailnumberDao aoaMailnumberDao;

    @Override
    public List<AoaMailnumber> selectAllAoaMail(Integer userId, String baseKey, Integer index, Integer size, Integer type, Integer status, Integer time) {
        return aoaMailnumberDao.selectAllAoaMail(userId, baseKey, index, size, type, status, time);
    }

    @Override
    public List<AoaMailnumber> selectAoaMailnumber(Integer userId) {
        return aoaMailnumberDao.selectAoaMailnumber(userId);
    }
}
